/**
 * 账户信息
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId;

var _Account = new Schema({
    userId: {type: ObjectId},   // 用户ID
    phone: {type: String},      // 手机号
    email: {type: String},      // 邮箱
    password: {type: String},   // 密码
    loginDt: {type: Date},      // 登录时间
    loginIp: {type: String},    // 登录IP
    registerDt: {type: Date},   // 注册时间
    registerIp: {type: String}  // 注册IP
});

mongoose.model('account', _Account);